// import React from 'react';
// import logo from './logo.svg';
// import './App.css';
import Calendar from "./Calendar";
import dayjs from "dayjs";
import { useState } from "react";

function App() {
  const [value, setValue] =  useState(dayjs('2023-11-08'));
  return (
    <div className="App">
      {/* <Calendar
        locale="en-US"
        // locale="zh-CN"
        value={dayjs()}
        onChange={(date) => {
          // alert(date.format("YYYY-MM-DD"));
        }}
      /> */}
      <Calendar value={value} onChange={(val) => {
        // console.log(3333);
        setValue(val)
      }}></Calendar>
    </div>
  );
}

export default App;
